<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>更改头像</title>
    <style>
        /* 简单CSS美化 */
        body { font-family: Arial, sans-serif; }
        .container { display: flex; flex-direction: column; align-items: center; }
        form {
            width: 300px;
            padding: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        input, button { width: 100%; padding: 10px; margin: 10px 0; }
        button { background-color: #007BFF; color: white; border: none; cursor: pointer; }
    </style>
</head>
<body>
    <div class="container">
        <form action="{% url 'update' %}" method="post" enctype="multipart/form-data">
            {% csrf_token %}
            <input type="file" name="wj" accept="image/*">
            <button type="submit">更新头像</button>
        </form>
    </div>
</body>
</html>
